/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICTOSCOMERCIAL")
public class MedictosComercialProteu implements Serializable{

    @Id
    @Column(name="MCO_ST_CODIGO")
    private String mcoStCodigo;
    @Column(name="MCO_ST_NOME_COMERCIAL")
    private String mcoStNomeComercial;
    @Column(name="MTI_ST_CODIGO")
    private String mtiStCodigo;
    @Column(name="MCO_ST_ATUALIZAR")
    private String mcoStAtualizar;
    @Column(name="MGR_ST_CODIGO")
    private String mgrStCodigo;


    public String getMcoStAtualizar() {
        return mcoStAtualizar;
    }

    public void setMcoStAtualizar(String mcoStAtualizar) {
        this.mcoStAtualizar = mcoStAtualizar;
    }

    public String getMcoStCodigo() {
        return mcoStCodigo;
    }

    public void setMcoStCodigo(String mcoStCodigo) {
        this.mcoStCodigo = mcoStCodigo;
    }

    public String getMcoStNomeComercial() {
        return mcoStNomeComercial;
    }

    public void setMcoStNomeComercial(String mcoStNomeComercial) {
        this.mcoStNomeComercial = mcoStNomeComercial;
    }

    public String getMgrStCodigo() {
        return mgrStCodigo;
    }

    public void setMgrStCodigo(String mgrStCodigo) {
        this.mgrStCodigo = mgrStCodigo;
    }

    public String getMtiStCodigo() {
        return mtiStCodigo;
    }

    public void setMtiStCodigo(String mtiStCodigo) {
        this.mtiStCodigo = mtiStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedictosComercialProteu other = (MedictosComercialProteu) obj;
        if ((this.mcoStCodigo == null) ? (other.mcoStCodigo != null) : !this.mcoStCodigo.equals(other.mcoStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 47 * hash + (this.mcoStCodigo != null ? this.mcoStCodigo.hashCode() : 0);
        return hash;
    }



}
